package com.supreme.threadserver.service.supplier;

import com.supreme.commonboot.utils.GlobalSpringUtils;
import com.supreme.threadserver.service.ReentryAsyncService;

import java.util.function.Supplier;

public class HelloSupplier implements Supplier<String> {

    @Override
    public String get() {
        ReentryAsyncService reentryAsyncService = GlobalSpringUtils.getBean(ReentryAsyncService.class);
        reentryAsyncService.reentryThreadDemo();
        return null;
    }
}
